#include "ExternalDeclaration.h"
#include <iostream>

#include "FunctionDefinition.h"
#include "../Declarations/Declaration.h"

ExternalDeclaration::~ExternalDeclaration()
{
	if(m_bIsFunction)
		delete m_pFunction;
	else
		delete m_pDeclaration;
}

void ExternalDeclaration::codeGen()
{
	COUT
	if(m_bIsFunction)
	{
		m_pFunction->codeGen();
	}
	else
		m_pDeclaration->codeGen();
}

